package com.zhi.blog.validate;

import com.zhi.blog.domain.bo.ArticleBo;
import com.zhi.common.core.domain.PageQuery;
import com.zhi.common.exception.base.BaseException;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * @author ftz-lover
 * @version 1.0
 * @date 2023/9/10 14:19
 */

@Service
@Log4j2
public class ArticleServiceValidator {

    public void queryPageList(ArticleBo bo, PageQuery pageQuery){
        if(Objects.isNull(pageQuery)){
            throw  new BaseException("分页参数为空");
        }
    }

}
